#ifndef OPENFILELOCATEFILEUPLOADUI_H
#define OPENFILELOCATEFILEUPLOADUI_H

#include <QObject>
#include <QQuickWidget>
#include <QQmlContext>

#include "openfilelocatefileuploadwebaddui.h"

class OpenFileLocateFileUploadUI : public QQuickWidget
{
    Q_OBJECT

public:
    OpenFileLocateFileUploadUI(QWidget *parent = nullptr);
    ~OpenFileLocateFileUploadUI();

signals:
    // 发给qml

    // 发给其他
    void cancel();

private slots:
    // qml槽函数
    void onCancel(); // 取消
    void onWebAdd();

public:
    QQmlContext* getContext() const; // 获取qmlcontext
    QObject* getRootObject() const; // 获取rootObject

    // 页面显示
    void hunheShow();

protected:
    void closeEvent(QCloseEvent *event) override;

private:
         // 数据转换

private:
    QObject *_rootObj;
    QQmlContext *_rootContext;

    OpenFileLocateFileUploadWebAddUI *webAddUI;
};

#endif // OPENFILELOCATEFILEUPLOADUI_H
